Skip to main content

Widgets

Widgets

ChatWidget

<com.meetingdoctors.chat.views.widgets.ChatWidget
android:id="@+id/chatWidget"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

ChatWidget is a view and its lifecycle are attached to the Activity´s lifecycle. To keep the widget updated you should call to chatWidget.refreshChatWidget() in your onResume()

With chatWidget.setToolbarImage(R.drawable.your_logo) you can set your logo to the top bar on consultations list.

AppointmentWidget

<com.meetingdoctors.chat.views.widgets.AppointmentWidget
android:id="@+id/appointmentWidget"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

AppointmentWidget is a view and its lifecycle are attached to the Activity´s lifecycle. To keep the widget updated you should call to appointmentWidget.refreshAppointment() in your onResume()

TeleRehabWidget

<com.meetingdoctors.chat.views.widgets.TeleRehabWidget
android:id="@+id/teleRehabWidget"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

TeleRehabWidget is a view and its lifecycle are attached to the Activity´s lifecycle. To keep the widget updated you should call to teleRehabWidget.refreshTelerehabWidget() in your onResume()

WellnessWidget

<com.meetingdoctors.chat.views.widgets.WellnessWidget
android:id="@+id/teleRehabWidget"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

WellnessWidget is a view and its lifecycle are attached to the Activity´s lifecycle. To keep the widget updated you should call to wellnessWidget.refreshWellnessWidget() in your onResume()